package cn.nuist.service;

import cn.nuist.entity.OrderItemsView;
import cn.nuist.entity.OrderSummaryView;
import cn.nuist.entity.enu.OrderStatus;
import cn.nuist.entity.enu.PaymentMethod;
import cn.nuist.utils.Page;
import org.springframework.ui.Model;

import java.util.List;

public interface BillService {
    Page<OrderSummaryView> getViewPage(Integer target);

    List<OrderItemsView> getdetail(Integer orderID);

    Page<OrderSummaryView> getBillByName(Integer pageNum, String cutomerName);

    void add(Model model);

    public void saveOrder(String customerName, String[] productNames, int[] quantities, PaymentMethod paymentMethod, OrderStatus orderStatus,double[] discountRate);

}
